package financial.sharing.center.receivable.model.entity;

import financial.sharing.center.common.base.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.ToString;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @ClassName ReceivableReturnCargo
 * @Description TODO
 * @Author guoyuhang
 * @ @csdn https://blog.csdn.net/qq_40788718
 * @Date 2021/4/15
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@ToString
@Entity
public class ReceivableReturnCargo extends BaseEntity {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    /**合同id*/
    private Integer contractId;
    /**业务线id*/
    private Integer businessLineId;

    private Integer receivableBillId;

    private Integer receivableAccruedId;

    /**货物价值*/
    private BigDecimal totalAmount;
    /**货物名称*/
    private String cargoName;
    /**数量*/
    private Integer quantity;

    private Date createTime;
    /**是否弃用 0:无 1:正常 2:弃用*/
    private Integer enableStatusValue;

    public ReceivableReturnCargo() {

    }
}
